![]() |
DMEnableDisplay |
||||
Header: | Displays.h | Carbon status: | Supported | |
Reactivates a display made inactive with the function
OSErr DMEnableDisplay ( GDHandle enableDevice, Handle displayState );
A handle to the GDevice structure for the video device whose display you wish to make active.
If your application called
A result code.
The function DMEnableDisplay reactivates the specified video device by adding to the desktop its display area.
If you add a display with the function DMAddDisplay and there are no active displays, the Display Manager will enable the added display.
Because this function may move or purge memory blocks or access handles, you cannot call it at interrupt time.
Applications generally never need to use this function. In case you find a compelling need to change the userís display configuration, this function is described here for completeness. Note that if your application uses Display Manager functions to change the display configuration of the userís video devices, your application should make these changes only with the consent of the user. If your application must have a specific pixel depth, for example, it should display a dialog box that offers the user a choice between changing to that depth or canceling display of the image.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. — (Last Updated 3/8/2000)